package com.yzs.core.momory

import android.app.Application
import android.content.Context
import com.yzs.core.http.RetrofitFactory

/**
 *    author : yzs
 *    date   : 2022/1/1211:50
 *    desc   : 内存缓存 一些变量，小开销的
 */
object AppManager {
    private lateinit var mApplication: Application
    val mContext: Context by lazy { mApplication }
    var baseUrl: String = ""
    var mIsDebug = false

    var uid: Long = 0               // 用户id
    var token = ""                  // app service 用户 Token


    fun init(isDebug: Boolean, application: Application) {
        mApplication = application
        mIsDebug = isDebug
        RetrofitFactory.mApplicationContext = application

    }

    /**
     * 退出登录
     */
    fun exitLogin() {
    }
}